secondhalf-lm:junk clacy$ cat adder.c && gcc adder.c -o foo && ./foo
#include <stdio.h>
#include <stdlib.h>
int main ( int argc, char *argv[] ){
float val = 0;
int i = 0;
while(i<10){
val += 0.1;
i++;
}
printf("nval is now %fn",val);
if(1 == val){
printf("nThat is equal to 1n"
}else{
printf("nThat is not equal to 1n"
}
return 0;
}
val is now 1.000000
That is not equal to 1
christo